import request from '@/utils/bsinRequest';

// 查询主题nft详情
export const getThemeByThemeNo = (params) => {
  return request('/getThemeByThemeNo', {
    serviceName: 'AdminNftThemeService',
    methodName: 'getThemeByThemeNo',
    bizParams: {
      ...params,
    },
  });
};

// 查询主题nft碎片详情
export const getFragmentsByThemeNo = (params) => {
  return request('/getThemeByThemeNo', {
    serviceName: 'AdminNftThemeService',
    methodName: 'getFragmentsByThemeNo',
    bizParams: {
      ...params,
    },
  });
};

// 上架
export const putOnShelves = (params) => {
  return request('/putOnShelves', {
    serviceName: 'AdminNftThemeService',
    methodName: 'putOnShelves',
    bizParams: {
      ...params,
    },
  });
};

// 下架
export const pullOffShelves = (params) => {
  return request('/pullOffShelves', {
    serviceName: 'AdminNftThemeService',
    methodName: 'pullOffShelves',
    bizParams: {
      ...params,
    },
  });
};
